// 菜单列表
const moduleList = {}

// 基础数据
moduleList.base =   {
  module: 'base',
  moduleName: '基础数据',
  icon: require('@/assets/app/icon/module/base.png'),
  menuList: [
    {
      title:'商品信息',
      path: '/base_matr_index',
      icon: require('@/assets/app/icon/menu/matr.png'),
      pathView: 'app/base/matr/index.vue'
    },
    {
      title:'已供货商品',
      path: '/base_matr_hp_index',
      icon: require('@/assets/app/icon/menu/matr_hp.png'),
      pathView: 'app/base/matr/matr_hp_index.vue'
    },
    {
      title:'已供货医院',
      path: '/supply_hp_index',
      icon: require('@/assets/app/icon/dept/hp.png'),
      pathView: 'app/base/hospital_supplier/supply_hp.vue',
      deptTypeFilter: () => {
        return [global.constCommon.deptType.supplier,global.constCommon.deptType.platform]
      },
    }
  ]
}

// 采购及发货
moduleList.order =   {
  module: 'order',
  moduleName: '采购及发货',
  icon: require('@/assets/app/icon/module/poandderive.png'),
  menuList: [
    {
      title:'待确认订单',
      path: '/order_confirm_index',
      icon: require('@/assets/app/icon/menu/po.png'),
      pathView: 'app/order/order_confirm_index.vue'
    },
    {
      title:'订单查询',
      path: '/order_report_index',
      icon: require('@/assets/app/icon/menu/report.png'),
      pathView: 'app/order/order_report_index.vue'
    },
    {
      title:'发货查询',
      path: '/delivery_report_index',
      icon: require('@/assets/app/icon/menu/delivery.png'),
      pathView: 'app/delivery/report_index.vue'
    }
  ]
}

// 资质信息
moduleList.cert =   {
  module: 'cert',
  moduleName: '资质信息',
  icon: require('@/assets/app/icon/module/cert.png'),
  menuList: [
    {
      deptTypeFilter: () => {
        return [global.constCommon.deptType.supplier,global.constCommon.deptType.platform]
      },
      title:'资质维护',
      path: '/cert_curd_index',
      icon: require('@/assets/app/icon/menu/cert_edit.png'),
      pathView: 'app/cert/cert_curd_index.vue'
    },
    {
      title:'资质查看',
      path: '/cert_view_index',
      icon: require('@/assets/app/icon/menu/cert_view.png'),
      pathView: 'app/cert/cert_view_index.vue'
    },
    {
      title:'资质预警',
      path: '/cert_warn_index',
      icon: require('@/assets/app/icon/menu/cert_warn.png'),
      pathView: 'app/cert/cert_warn_index.vue'
    }
  ]
}

// 结算管理
moduleList.settlement =   {
  module: 'settlement',
  moduleName: '结算管理',
  icon: require('@/assets/app/icon/module/settlement.png'),
  menuList: [
    {
      title:'实时库存',
      path: '/stock_now_index',
      icon: require('@/assets/app/icon/menu/stocktime.png'),
      pathView: 'app/stock/stock_now.vue'
    },
    {
      title:'期末库存',
      path: '/stock_his_index',
      icon: require('@/assets/app/icon/menu/stockend.png'),
      pathView: 'app/stock/stock_his.vue'
    },
    {
      title:'高值消耗汇总',
      path: '/oprt_use_index',
      icon: require('@/assets/app/icon/menu/bus_use_high.png'),
      pathView: 'app/oprt_use/oprt_use_index.vue'
    },
    {
      title:'高值消耗明细',
      path: '/oprt_use_dtl_index',
      icon: require('@/assets/app/icon/menu/bus_use_high.png'),
      pathView: 'app/oprt_use/oprt_use_dtl_index.vue'
    },
    {
      title:'开票管理',
      path: '/invoice_wait',
      icon: require('@/assets/app/icon/menu/invoice_wait.png'),
      pathView: 'app/settlement/invoice_wait.vue'
    }
  ]
}

// 系统管理
moduleList.system =  {
  module: 'system',
  moduleName: '系统管理',
  icon: require('@/assets/app/icon/module/system.png'),
  // 管理员显示
  isAdmin: true,
  menuList: [
    {
      title:'用户管理',
      path: '/system_user_index',
      icon: require('@/assets/app/icon/menu/user.png'),
      pathView: 'app/system/system_user_index.vue'
    },
    {
      title:'微信用户',
      path: '/system_vx_user',
      icon: require('@/assets/app/icon/menu/wxuser.png'),
      pathView: 'app/system/system_vx_user.vue'
    },
    {
      title:'微信消息',
      path: '/system_vx_msg',
      icon: require('@/assets/app/icon/menu/wxmsg.png'),
      pathView: 'app/system/system_vx_msg.vue'
    }
  ]
}
export default moduleList
